package io.renren.modules.app.service;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import io.renren.modules.app.entity.BxMx;

@Repository
public interface IBxMxService extends JpaRepository<BxMx, String> {
	/**
	 * 通过报销id查询所有的子表单信息
	 * @param bxId
	 * @return
	 */
	@Query(value = "SELECT * FROM `t_clfmx` WHERE wai_jian_id_=?1", nativeQuery = true)
	List<BxMx> findMxByWaijianId(String bxId);
}
